﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("t_guid", Name = "t_guid")]
[Index("t_status", Name = "t_status")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_model_type
{
    [Key]
    public long t_id { get; set; }

    [StringLength(50)]
    public string t_code { get; set; }

    /// <summary>
    /// 0正常，1禁用
    /// </summary>
    public int? t_status { get; set; }

    public string t_guid { get; set; }

    /// <summary>
    /// 类型名称
    /// </summary>
    [StringLength(100)]
    public string t_name { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime? t_add_time { get; set; }
}
